package com.bieyang.anjia.module;

/**
 * 升级类型
 * @author 余波
 *
 */
public enum VersionUpdateEnum {
	ONE("1","无打扰升级"),
    TOW("2","弹窗升级"),
    THREE("3","强制升级");
	 /** 枚举码. */
    private final String code;

    /** 描述信息. */
    private final String desc;
    
    private VersionUpdateEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    /**
     * 通过字符串获取忠机的状态.
     * @param code
     * @return
     */
    public static VersionUpdateEnum getBizStatus(String code) {

        for (VersionUpdateEnum status : VersionUpdateEnum.values()) {
            if (status.getCode().equals(code)) {
                return status;
            }
        }
        return null;
    }
    
	public String getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
}
